<?php
/**
 * Created by lzl
 * Date: 2021 2021/9/27
 * Time: 11:24
 */
namespace App\Services\Api;
use App\Forms\BannerForms;
use App\Forms\GoodsForms;
use App\Models\Banner;
use App\Services\BaseServices as Base;


class HomeServers extends Base
{

    /**
     * @return array
     */
    public function homeData()
    {
        //banner
        $banner = (new BannerForms())->getBannerList(['type' => Banner::TYPE_INDEX]);

        return array_merge(compact('banner'), (new PluginServices())->getHomePlugin());
    }


    /**
     * @return mixed
     */
    public function cateList()
    {
        return (new GoodsForms())->getCateChildren();
    }

}